package cn.itsource.service;

import cn.itsource.pojo.domain.Order;
import cn.itsource.pojo.dto.CancelOrderDto;
import cn.itsource.pojo.dto.ConfirmFeesDto;
import cn.itsource.pojo.dto.OrderDto;
import cn.itsource.result.JSONResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author lifan
 * @since 2024-09-20
 */
public interface IOrderService extends IService<Order> {

    JSONResult save(OrderDto orderDto);

    JSONResult pullCustomerOrder();

    JSONResult cancelOrder(CancelOrderDto cancelOrderDto);

    JSONResult grabOrder(String orderNo);

    JSONResult checkRunningOrder();

    JSONResult receivedAnOrder(String orderNo);

    JSONResult driverRunningOrder();

    JSONResult arriveStartPlaceHandle(String orderNo);

    JSONResult startDrivingHandle(String orderNo);

    JSONResult endDrivingHandle(String orderNo);

    JSONResult confirmFees(ConfirmFeesDto confirmFeesDto);
}
